<?php if ($this->_var['list']): ?>
<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
<article class="oneyuanbuy-list">
	<a style="color:#777;" href="activitys.php?act=oneyuan_xq&id=<?php echo $this->_var['item']['sheep_id']; ?>">
	<div class="obl-titlebox">
		<span class="obl-ti">一元抢羊第 <span class="orange"><?php echo $this->_var['item']['qishu']; ?></span> 期</span>
	<span class="obl-jl">
		<span>奖品</span>
		<?php echo $this->_var['item']['sheep_name']; ?>
	</span>
	</div>
	<div class="obl-timebox"><span class="ot-left">发起时间：<?php echo $this->_var['item']['ystart_date']; ?></span><span class="ot-right">价值：<?php echo $this->_var['item']['jiazhi']; ?></span>
	</div>
	</a>
	<div class="obl-statusbox">
		<a style="color:#777;" href="activitys.php?act=oneyuan_xq&id=<?php echo $this->_var['item']['sheep_id']; ?>">
			<span class="obl-statustext">状态：</span>
		</a>
		<a href="activitys.php?act=oneyuan_xq&id=<?php echo $this->_var['item']['sheep_id']; ?>" class="obl-btn <?php if ($this->_var['item']['state'] == 2): ?>obl-org-btn <?php else: ?>obl-grey-btn <?php endif; ?>"><?php echo $this->_var['item']['text']; ?></a>
		<span class="r">剩余：<span class="orange"><?php echo $this->_var['item']['number']; ?></span> 人/次</span>
	</div>
</article>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php endif; ?>